Txn Util
Properties
Functions
Copies the descriptions/memos, categories and amounts from the given source transaction, optionally adjusting the amounts to match the current target transaction value.
Copy any VAT/GST-related tags from one split to another. This should only be used when duplicating transactions (ie for auto-completion) for which you would like the VAT/GST status to also be transferred.
Find the matching VAT/GST split, if any, for the given split under the given parent txn. Note: Available as of build 312.
Get the part of the transaction that doesn't go to a security. (ie. the commission expense).
Get the part of the transaction that is expense.
Get the part of the transaction that is income.
Return a list of non-numeric string values that have appeared in the check number field for transactions in the given account, or if accountFilter is null then in any account. This will return no more than 200 entries.
Return a list of non-numeric string values that have appeared in the check number field for transactions in the given account, or if accountFilter is null then in any account. This will return no more than maximumAmount entries.
As of Build 256. This method returns the number of shares accounted for.
Get the part of the transaction that goes to a security account.
Get the part of the transaction that goes to another bank account.
Mark transactions in the given enumeration with the given status flag if they fall on or before the given date. Note: This method fires a txn-modified event for every transaction that is changed.
Return the best guess for the kind of media contained in the given file
This is only available on Build 256 and up. This returns the set of buy transactions matched with the given sell transaction. The key is a string with the transaction ID, the value is the number of shares from that transaction.
Tag the given split as the commission/fee part of its investment transaction. This also un-tags any other splits as the commission part of the same transaction. Added in build 302
Tag the given split as the expense part of its investment transaction. This also un-tags any other splits as the expense part of the same transaction. Added in build 302
Tag the given split as the income part of its investment transaction. This also un-tags any other splits as the income part of the same transaction. Added in build 302
Tag the given (investment) transaction with the given transaction type
If the given transaction contains any inter-currency (or security to/from currency) elements, adjust the rates based on the the currency and security rate/price tables at the time of the transaction. Note: This is only available in build 794 and later.
Tag the given split as the security part of its investment transaction. This also un-tags any other splits as the security part of the same transaction. Added in build 302
Tag the given split as the transfer part of its investment transaction. This also un-tags any other splits as the transfer part of the same transaction. Added in build 302
Return whether all parts of the given transaction are cleared for archiving.
Return true iff this transaction is a transfer to, from or within an investment account.
Returns true if the given transaction was downloaded, or imported from a downloaded file.